#pragma once
#include "stdafx.h"
#include <d3d9.h>
#include <d3dx9.h>
class DeviceManager
{
public:
	DeviceManager(void);
	~DeviceManager(void);
	static IDirect3DDevice9* WINAPI CreateDevice(HWND window,bool windowed);
	static IDirect3DDevice9* WINAPI GetDevice();
	static void CleanUp(void);
private:
	static IDirect3DDevice9* pdevice;
	
};
//IDirect3DDevice9* pdevice=NULL;
//int DeviceManager::a=10;
